<template>
    <div class="body">
        <div class="box">
            <img class="img" src="/images/login.png">
            <form action="">
                <div class="row">
                    <img class="icon" src="/icons/icon.png">
                    <span>校务管理系统</span>
                </div>
                <el-input
                    v-model="input"
                    style="width: 240px"
                    placeholder="Please input"
                    clearable
                />
                <el-button type="primary" @click="onSubmit">登录</el-button>
            </form>
        </div>
    </div>    
</template>
  
<script lang="ts" setup>
    import { ref } from 'vue'

    const input = ref('')

    const onSubmit = () => {
    console.log('submit!')
    }
</script>

<style scoped lang="scss">
    .body{
        width: 1536px;
        height: 729px;
        // width: 100ph;
        // height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f0f5f5;
        .box{


            .img{
            width: 240px;
            height: 340px;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        form{
            width: 340px;
            height: 340px;
            display: flex;
            flex-direction: column;
            background-color: #fff;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
            box-shadow: inset 0 0 10px rgba(0,0,0,.2);

            .icon{
                width: 40px;
            }
            .row{
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                margin-bottom: 20px;
            }
        }
        }

        
    }
</style>